<div class="am-u-sm-12">


    <form class="am-form" id="list-form" action="${base}/promotion/list" method="post">
        <input type="hidden" id="keywords" name="keywords" value='${keywords!""}'/>
        <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
            <tbody>
            <tr>
                <th class="am-text-middle">所属机构</th>
                <td>
                    <div class="am-u-sm-10">
                        <select id="org" name="org" data-am-selected="{btnSize: 'sm',maxHeight: 200,searchBox: 1}">
                            <option value="-1"
                            <%if (isEmpty(org_id)||org_id=="-1"){%>
                            selected = "selected"
                            <%}%>
                            >所有</option>
                            <%for(o in orgs!){%>
                            <option value="${o.value}"
                            <%if (!isEmpty(org_id)&&org_id==o.value){%>
                            selected = "selected"
                            <%}%>
                            >${o.key}</option>
                            <%}%>
                        </select>
                    </div>
                </td>
                <th class="am-text-middle">发布时间</th>
                <td>
                    <div class="am-u-sm-10">
                        <div class="am-form am-form-inline">
                            <div class="am-form-group am-form-icon">
                                <i class="am-icon-calendar"></i>
                                <input type="text" class="am-form-field am-input-sm" id="startTime"
                                       value="${start_time!}" placeholder="开始日期" data-am-datepicker>
                            </div>
                            <div class="am-form-group">至</div>
                            <div class="am-form-group am-form-icon">
                                <i class="am-icon-calendar"></i>
                                <input type="text" class="am-form-field am-input-sm" id="endTime" value="${end_time!}"
                                       placeholder="结束日期" data-am-datepicker>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <th class="am-text-middle">名称</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="name"  value="${name!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
                <th class="am-text-middle">是否发布</th>
                <td>
                    <div class="am-u-sm-10">
                        <!--<span>${issuance!''}</span>-->
                        <select data-am-selected="{btnSize:'sm'}" id="issuance" name="issuance">
                            <option value="all">所有</option>
                            <option value="suance" <%if (issuance!''=='suance'){%> selected = "selected"<%}%>>是</option>
                            <option value="unsuance" <%if (issuance!''=='unsuance'){%> selected = "selected"<%}%>>否</option>
                        </select>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <div align='right'>
                        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="submit-btn"
                                onClick="submit_btn();">搜索
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
